package com.jay.base.fanshe;

import java.lang.reflect.Method;

/**
 * Created by caoyuan7 on 2019/3/6.
 */
class XYZ {
    public static String name = "luoxn28";

    public void tt(){
        System.out.print("xxx");

    }
    static {
        System.out.println("xyz静态块");
    }

    public XYZ() {
        System.out.println("xyz构造了");
    }
}
public class Fanshe {
    public static void main(String[] args) {
        System.out.println(XYZ.name);
        XYZ xyz = new XYZ();
        Class clazz =  xyz.getClass();
        Method[] t = clazz.getDeclaredMethods();

    }
}
